﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类WKY_DATA
     ///</summary>
     public class WKY_DATA
     {
         private int __ID=0 ;
         private string __HPHM=string.Empty ;
         private string __HPZLDH=string.Empty ;
         private string __AJLSH=string.Empty ;
         private string __ZJLSH=string.Empty ;
         private string __CSC=string.Empty ;
         private string __CSK=string.Empty ;
         private string __CSG=string.Empty ;
         private string __ZJ=string.Empty ;
         private string __ZCWKCC_PD=string.Empty ;
         private int? __ISREAD=null ;
         private string __SYSDATE=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public WKY_DATA()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("HPHM",false);
             this.__Changed.Add("HPZLDH",false);
             this.__Changed.Add("AJLSH",false);
             this.__Changed.Add("ZJLSH",false);
             this.__Changed.Add("CSC",false);
             this.__Changed.Add("CSK",false);
             this.__Changed.Add("CSG",false);
             this.__Changed.Add("ZJ",false);
             this.__Changed.Add("ZCWKCC_PD",false);
             this.__Changed.Add("ISREAD",false);
             this.__Changed.Add("SYSDATE",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__HPHM =string.Empty;
             this.__HPZLDH =string.Empty;
             this.__AJLSH =string.Empty;
             this.__ZJLSH =string.Empty;
             this.__CSC =string.Empty;
             this.__CSK =string.Empty;
             this.__CSG =string.Empty;
             this.__ZJ =string.Empty;
             this.__ZCWKCC_PD =string.Empty;
             this.__ISREAD =null;
             this.__SYSDATE =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["HPHM"] = false;
             this.__Changed["HPZLDH"] = false;
             this.__Changed["AJLSH"] = false;
             this.__Changed["ZJLSH"] = false;
             this.__Changed["CSC"] = false;
             this.__Changed["CSK"] = false;
             this.__Changed["CSG"] = false;
             this.__Changed["ZJ"] = false;
             this.__Changed["ZCWKCC_PD"] = false;
             this.__Changed["ISREAD"] = false;
             this.__Changed["SYSDATE"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[HPHM]的数据
         /// </summary>
         public string HPHM
         {
              set{ __HPHM = value.Replace("'","’"); __Changed["HPHM"] = true;}
              get{return __HPHM;}
         }
         /// <summary>
         ///设置或获取类中的[HPZLDH]的数据
         /// </summary>
         public string HPZLDH
         {
              set{ __HPZLDH = value.Replace("'","’"); __Changed["HPZLDH"] = true;}
              get{return __HPZLDH;}
         }
         /// <summary>
         ///设置或获取类中的[AJLSH]的数据
         /// </summary>
         public string AJLSH
         {
              set{ __AJLSH = value.Replace("'","’"); __Changed["AJLSH"] = true;}
              get{return __AJLSH;}
         }
         /// <summary>
         ///设置或获取类中的[ZJLSH]的数据
         /// </summary>
         public string ZJLSH
         {
              set{ __ZJLSH = value.Replace("'","’"); __Changed["ZJLSH"] = true;}
              get{return __ZJLSH;}
         }
         /// <summary>
         ///设置或获取类中的[CSC]的数据
         /// </summary>
         public string CSC
         {
              set{ __CSC = value.Replace("'","’"); __Changed["CSC"] = true;}
              get{return __CSC;}
         }
         /// <summary>
         ///设置或获取类中的[CSK]的数据
         /// </summary>
         public string CSK
         {
              set{ __CSK = value.Replace("'","’"); __Changed["CSK"] = true;}
              get{return __CSK;}
         }
         /// <summary>
         ///设置或获取类中的[CSG]的数据
         /// </summary>
         public string CSG
         {
              set{ __CSG = value.Replace("'","’"); __Changed["CSG"] = true;}
              get{return __CSG;}
         }
         /// <summary>
         ///设置或获取类中的[ZJ]的数据
         /// </summary>
         public string ZJ
         {
              set{ __ZJ = value.Replace("'","’"); __Changed["ZJ"] = true;}
              get{return __ZJ;}
         }
         /// <summary>
         ///设置或获取类中的[ZCWKCC_PD]的数据
         /// </summary>
         public string ZCWKCC_PD
         {
              set{ __ZCWKCC_PD = value.Replace("'","’"); __Changed["ZCWKCC_PD"] = true;}
              get{return __ZCWKCC_PD;}
         }
         /// <summary>
         ///设置或获取类中的[ISREAD]的数据
         /// </summary>
         public int? ISREAD
         {
              set{ __ISREAD = value; __Changed["ISREAD"] = true;}
              get{return __ISREAD;}
         }
         /// <summary>
         ///设置或获取类中的[SYSDATE]的数据
         /// </summary>
         public string SYSDATE
         {
              set{ __SYSDATE = value.Replace("'","’"); __Changed["SYSDATE"] = true;}
              get{return __SYSDATE;}
         }
    }
}
